/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.heathrowapi.dto;

import java.io.Serializable;

/**
 *
 * @author Ufonzak
 */
public class DestinationDTO implements Serializable
{
    private Long id;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }
    
    private String city;

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }
    
    private String code;

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }
    
    private String destinationState;

    public String getState()
    {
        return destinationState;
    }

    public void setState(String state)
    {
        this.destinationState = state;
    }
    private String stateCode;

    public String getStateCode()
    {
        return stateCode;
    }

    public void setStateCode(String stateCode)
    {
        this.stateCode = stateCode;
    }

    @Override
    public int hashCode()
    {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object)
    {
        if (!(object instanceof DestinationDTO)) {
            return false;
        }
        DestinationDTO other = (DestinationDTO) object;
        if (this.id == null  || (this.id != null && !this.id.equals(other.id)))
        {
            return false;
        }
        return true;
    }

    @Override
    public String toString()
    {
        return "Destination{" + "id=" + id + ", code=" + code + ", city=" + city + ", state=" + destinationState + '}';
    }
}
